package com.example.test.operate.service.impl;

import com.example.test.operate.POJO.PO.OperateUserInfoPO;
import com.example.test.operate.dao.IOperateUserInfoDao;
import com.example.test.operate.service.IOperateUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <desc>
 *
 * </desc>
 *
 * @createDate 2021-07-19
 */
@Service
public class OperateUserInfoServiceImpl implements IOperateUserInfoService {

    @Autowired
    IOperateUserInfoDao iOperateUserInfoDao;

    /**
     * <desc>
     *         人员列表
     * </desc>
     *
     * @param
     * @return
     * @author liuyu
     * @createDate 
     */
    @Override
    public List<OperateUserInfoPO> getList(OperateUserInfoPO operateUserInfoPO) {
        return iOperateUserInfoDao.getList(operateUserInfoPO);
    }

    /**
     * <desc>
     * 通过角色id获取人员id
     * </desc>
     *
     * @param roleId@return
     * @author liuyu
     * @createDate 2021-07-26
     */
    @Override
    public String[] getUserIdByRoleId(String roleId) {
        return iOperateUserInfoDao.getUserIdByRoleId(roleId);
    }

}
